//src/api/home.js  配置前端接口
import axios from "./request"
//请求示例
//get
export const myGet = (data) => {
  // console.log('myGet in',data);
  return axios({ 
    url: "/api/vite_axios_php.php?get_data&empno=7369&ename=SMITH",
    method: "GET",
    data
  })
} 
//post
export const myPost = (data) => {
  return axios({
    url: "/api/vite_axios_php.php?post_data",
    method: "POST",
    data: {empno: '7369', ename: 'SMITH'}
  })
}
